package com.wksc.framework.impexp.pattern;

import com.wksc.framework.impexp.bean.BaseFormatParams;

/**
 * <p> Title(文件名): AddSigns.java </p>
 * <p> Description(描述): 此类处理格式化单元格时在末尾添加符号的情况 </p>
 * <p> Copyright(版权): Copyright (c) 2011 </p>
 * <p> Company(公司): 成都四方信息技术有限公司 </p>
 * <p> CreateTime(生成日期)：2011-11-30上午10:08:27 </p>
 * @author wanglei
 * @version impExp_C13_P
 */
public class AddSigns implements FormatPattern{

	private static final long serialVersionUID = 1258150957686068028L;
	private String sign = "";
	
	/**
	 * 末尾添加符号的格式化类
	 * @param sign 末尾待添加的符号
	 */
	public AddSigns(String sign) {
		super();
		this.sign = sign;
	}

	@Override
	public String format(BaseFormatParams params) {
		StringBuffer tmp = new StringBuffer();
		tmp.append(params.getCellContent()).append(sign);
		return tmp.toString();
	}

}
